package org.yzh.web.model.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @TableName video_download
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class VideoDownloadDO extends BaseDeviceInfo implements Serializable {
    public static final int SUCCESS = 1;
    public static final int WAITING = 2;
    public static final int PROCESSING = 3;
    public static final int FAILED = 4;
    /**
     * 主键
     *
     * @mbg.generated Sun Jan 17 14:28:36 CST 2021
     */
    private Long id;

    /**
     * 开始时间
     *
     * @mbg.generated Sun Jan 17 14:28:36 CST 2021
     */
    private LocalDateTime startDateTime;

    /**
     * 结束时间
     *
     * @mbg.generated Sun Jan 17 14:28:36 CST 2021
     */
    private LocalDateTime endDateTime;

    /**
     * 大小
     *
     * @mbg.generated Sun Jan 17 14:28:36 CST 2021
     */
    private Long size;

    /**
     * 视频地址
     *
     * @mbg.generated Sun Jan 17 14:28:36 CST 2021
     */
    private String url;

    /**
     * 状态 1 处理成功 2 等待处理  3 处理中 4 处理失败
     */
    @Schema(description = "状态 1 处理成功 2 等待处理  3 处理中 4 处理失败")
    private Integer status;

    /**
     * 七牛的任务处理ID
     */
    private String persistentId;

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 桶名称
     */
    private String bucket;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table video_download
     *
     * @mbg.generated Sun Jan 17 14:28:36 CST 2021
     */
    private static final long serialVersionUID = 1L;
}